home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_actor_aibazooka.cog < prev    next >
Text File  |  1999-11-15  |  857b  |  46 lines

  1. # ===================================================================
  2. # Jones 3D Cog Script
  3. #
  4. # actor_AIBazooka.cog
  5. #
  6. # [RandyT]
  7. #
  8. # Actor script for cutscene actor AI with a bazooka.
  9. #
  10. # (C) 1998 LucasArts Entertainment Company LLC. All Rights Reserved
  11. # ===================================================================
  12.  
  13. symbols
  14.  
  15. message        created
  16.  
  17. keyframe    draw=02h_pull_bazooka.key    local
  18.  
  19. model        bazooka=weap_bazooka.3do    local
  20.     
  21. thing        bandito                        local
  22.         
  23. end
  24.  
  25. # ===================================================================
  26.  
  27. code
  28.  
  29. created:
  30.  
  31.     bandito = GetSenderRef();
  32.  
  33.     # Swap in the weapon model
  34.     SetThingMesh(bandito, 8, bazooka, 0);
  35.  
  36.     # Set the fire offset
  37.     SetThingFireOffset(bandito, '-0.003 0.065 0.01');
  38.  
  39.     # Play the draw animation
  40.     PlayKey(bandito, draw, 4, 0x14, 0);
  41.  
  42.     return;
  43.  
  44. end
  45.  
  46.